package cn.jtcoding.xhs;

import cn.jtcoding.xhs.commons.MinIOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableOpenApi
@SpringBootApplication
public class XhsApplication implements CommandLineRunner {

    @Autowired
    private MinIOUtils minIOUtils;

    public static void main(String[] args) {
        SpringApplication.run(XhsApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        // minIOUtils.putObject("test/db.sql", "C:\\Users\\jason.tang\\Projects\\Ideaproject\\xhs\\src\\main\\resources\\db\\data.sql");
    }
}
